<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Display Extraction</title>
<link href="styles/global.css" rel="Stylesheet" type="text/css">
<script type="text/javascript" src="scripts/global.js"></script>
<script type="text/javascript" src="scripts/prototype.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
</head>
<body>

<div id="container">
<div id="top">
<h1>CHC DB Web</h1>
</div>
<div id="leftnav"><jsp:include page="./includes/leftnav.jsp"></jsp:include></div>
<div id="content">
<h2>Display Single Extraction</h2>

<form method="post" action="mainServlet"><input type="hidden" id="appAction" name="appAction"
	value="displayExtraction" />

<fieldset>
<legend>Extraction Search Parameters</legend> 

<label for="chcID">CHC ID</label>
<input type="text" id="chcID" value="${fn:escapeXml(tissue.chcID)}" name="chcID" size="15"
	maxlength="15" />
<span class="error">${displayExtractionForm.messages.chcID}</span>
<br />
	

<label for="tissueTypeID">Tissue Type ID </label>
<input type="text" id="tissueTypeID"
	name="tissueTypeID" size="15" maxlength="15" value="${fn:escapeXml(tissue.tissueTypeID)}" />
<br />

<label for="tissueTypeID">Extraction Type</label>
<input type="checkbox" name="dnaExtractionCheckbox" id="dnaExtractionCheckbox"/>DNA
<input type="checkbox" name="rnaExtractionCheckbox" id="rnaExtractionCheckbox"/>RNA
<input disabled="disabled" type="checkbox" name="rnaExtractionCheckbox" 
	id="rnaExtractionCheckbox"/>Protein

&nbsp;&nbsp;

<input type="checkbox" name="allExtractionCheckbox" id="allExtractionCheckbox" 
	onClick="toggleAllExtractions();"/>all 
 
<br/>

<input type="submit" value="Display" class="withoutLabel" />

</fieldset>


<p class="${displayExtractionForm.success ? 'success' : 'error'}">
	${displayExtractionForm.messages.result}</p>


<fieldset><legend>Extraction Info</legend> <label>Tissue Quantity Left</label>
<div>${tissue.quantityLeft}</div>
<br />
<label>Associated Tissues</label>
<div class="result">${tissue.associatedTissues}</div>
<br />
<label>Tissue Extractions</label>
<div class="result">${tissue.tissueExtractions}</div>

</fieldset>
</form>
</div>
<div id="footer"><jsp:include page="./includes/footer.jsp"></jsp:include></div>
</div>
</body>
</html>